//
//  UserCentral.h
//  playSerengetiMobile1
//
//  Created by Lita Gratrix on 12/13/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "User.h"
#import "Team.h"
#import "Location.h"
#import "Visit.h"
#import "MainView.h"
#import "UserProfile.h"
#import "playSerengetiMobile1AppDelegate.h"


@interface UserCentral : UIViewController <UITableViewDelegate, UITableViewDataSource> {
	UITableView *userCentralTableView;
	
	NSMutableData *responseData;
	
	NSMutableArray *recentVisits;
	NSMutableArray *mostActive;
	NSMutableArray *newestUsers;
	
	NSMutableArray *tableSourceArray;
	
	playSerengetiMobile1AppDelegate *appDelegate;
}

@property (nonatomic, retain) IBOutlet UITableView *userCentralTableView;

@property (nonatomic, retain) NSMutableArray *recentVisits;
@property (nonatomic, retain) NSMutableArray *mostActive;
@property (nonatomic, retain) NSMutableArray *newestUsers;

@property (nonatomic, retain) NSMutableArray *tableSourceArray;

@property (nonatomic, retain) playSerengetiMobile1AppDelegate *appDelegate;

- (void)populateViewData:(NSDictionary *)parsedData;
- (void)populateRecentVisits:(NSMutableArray *)recentVisitsArray;
- (void)populateMostActive:(NSMutableArray *)mostActiveArray;
- (void)populateNewestUsers:(NSMutableArray *)newestUsersArray;
- (User *)populateVisitUser:(NSDictionary *)visitUserDic;
- (Team *)populateVisitTeam:(NSDictionary *)visitTeamDic;
- (Location *)populateVisitLocation:(NSDictionary *)visitLocationDic;

@end
